package com.zudada.servermain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zudada.servermain.POJO.VO.PortOperationStatsVO;
import com.zudada.servermain.POJO.entity.PortOperationStats;
import com.zudada.servermain.POJO.entity.VesselBerthing;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VesselBerthingMapper extends BaseMapper<VesselBerthing> {
    /**
     * 按港口和周期汇总已离泊船舶的货物数据
     * @param periodType 周期类型（DAY/WEEK/MONTH/YEAR）
     * @return 汇总结果（港口ID、周期、总吞吐量、船舶数等）
     */
    List<PortOperationStatsVO> sumCargoByPortAndPeriod(@Param("periodType") String periodType);



}
